package com.yunshangwoniu.core.utils;

public class Logger
{
	
	public static void info(Class<?> c,String message)
	{
		org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(c);
		message = message==null||"".equals(message)?"Info message is null":message;
		logger.info(message);
	}
	public static void debug(Class<?> c,String message)
	{
		org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(c);
		message = message==null||"".equals(message)?"Debug message is null":message;
		logger.debug(message);
	}
	
	public static void warn(Class<?> c,String message)
	{
		org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(c);
		message = message==null||"".equals(message)?"Debug message is null":message;
		logger.warn(message);
	}
}
